package com.niiwoo.civet.trade.dao.mapper;

import com.niiwoo.civet.trade.dao.entity.ProjectLoanRateConfig;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProjectLoanRateConfigMapperExt extends ProjectLoanRateConfigMapper {
    List<ProjectLoanRateConfig> selectByPricingScheme(Byte pricingScheme);

    ProjectLoanRateConfig selectByPricingSchemeAndDeadline(@Param("pricingScheme") Integer pricingScheme, @Param("borrowMonth") Integer borrowMonth);

    List<ProjectLoanRateConfig> selectByPricingSchemeAndMaxDeadline(@Param("pricingScheme") Byte pricingScheme, @Param("maxDeadline") Integer borrowMonth);
}